﻿<Window x:Class="WPFPhysics1.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="WPFPhysics1" Width="800" Height="600"
		xmlns:system="clr-namespace:System;assembly=mscorlib"
		xmlns:local="clr-namespace:WPFPhysics1"
    Name="window">

	<Window.Resources>

		<ObjectDataProvider x:Key="bodies" ObjectType="{x:Type local:Bodies}">
			<ObjectDataProvider.ConstructorParameters>
				<system:Double>20</system:Double>
				<system:Double>8</system:Double>
			</ObjectDataProvider.ConstructorParameters>
		</ObjectDataProvider>

	</Window.Resources>

	<Grid>
		<local:World DataContext="{Binding Source={StaticResource bodies}}" Background="PaleGoldenrod"/>
		<Canvas>
			<StackPanel Canvas.Bottom="50" Canvas.Right="50">
				<Button Name="rectangle" Click="Drop_Click">Drop rectangle</Button>
				<Button Name="ellipse" Click="Drop_Click">Drop ellipse</Button>
				<Button Name="polygon" Click="Drop_Click">Drop polygon</Button>
				<Button Name="car" Click="Drop_Click">Drop car</Button>
				<Button Name="platforms" Click="Drop_Click">New platforms</Button>
			</StackPanel>
		</Canvas>
	</Grid>

</Window>